// Dialog
.ngdialog{
  .ngdialog-content{
    position: absolute;
    border-radius: 0 !important;
    background: #fff !important;
  }
  .title{
    margin-bottom: 20px;
    font-family: "Microsoft Yahei";
    font-size: 20px;
    color: #282828;
    text-shadow: 0 0 0 #282828;
  }
  form {
    font-size: 12px;
  }
  .form-group{
    margin-bottom: 20px;
  }
  input {
    margin: 0;
    width: 100%; height: 33px;
    padding: 0 10px;
    border: 1px solid #E3E1E2;
    vertical-align: top;
    font-family: Arial;
    font-size: 12px;
    // outline: none;
    background: #fff;
  }
  textarea{
    width: 100%; height: 154px;
    padding: 5px 10px;
    border: 1px solid #E3E1E2;
    line-height: 16px;
    resize: none;
  }
  .cancel{
    text-decoration: underline;
    margin-left: 20px;
    color: #282828;
  }
  .btn[disabled]{
    background: #a4a4a4 !important;
  }

}
.ngdialog-vedio .ngdialog-content{
  width: 920px !important;
}
.ngdialog-theme-small .ngdialog-content{
  width: 295px !important;
}
.ngdialog-theme-big .ngdialog-content{
  width: 1000px !important;
}
.ngdialog-theme-middle .ngdialog-content{
  width: 700px !important;
  border: 0 !important;
  .ngdialog-close{
    right: -28px;
    top: -23px;
  }
  .nav-modify{
    height: 564px;
    padding: 30px 45px 20px;
    overflow-y: scroll;
    p{
      margin-top: 0;
      margin-bottom: 20px;
      font-size: 16px;
    }
    [type="text"]{
      width: 100px;
    }
    [type="url"]{
      width: 300px;
    }
    .form-group{
      margin-bottom: 15px;
    }
    button {
      display: inline-block;
      padding: 6px 12px;
      margin-bottom: 0;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.42857143;
      text-align: center;
      white-space: nowrap;
      vertical-align: middle;
      cursor: pointer;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      border: 1px solid transparent;
      border-radius: 4px;
      color: #333;
      background-color: #fff;
      border-color: #ccc;
      &:hover, &:active{
        background-color: #e6e6e6;
        border-color: #adadad;
      }
      &:active{
        outline: 0;
        -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
        box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
      }
      &[disabled]{
        background-color: #fff;
        border-color: #ccc;
        pointer-events: none;
        cursor: not-allowed;
        -webkit-box-shadow: none;
        box-shadow: none;
        opacity: .65;
      }
    }
  }
  .form-action{
    position: absolute;
    right: 33px;
    bottom: 19px;
  }
}

// 大对话框
.ngdialog-module, .ngdialog-style, .ngdialog-theme-middle{
  padding-top: 3%;

  &.ngdialog-closing .ngdialog-content {
    -webkit-animation: ngdialog-flyout .5s;
    animation: ngdialog-flyout .5s;
  }
  .ngdialog-content {
    -webkit-animation: ngdialog-flyin .5s;
    animation: ngdialog-flyin .5s;
    background: #fff;
    color: #444;
    font-family: 'Helvetica',sans-serif;
    font-size: 1.1em;
    line-height: 1.5em;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    width: 1000px;
    border: 3px solid #DC4329;
  }
  .ngdialog-close{
    cursor: pointer;
    position: absolute;
    &:before{
      display: block;
      width: 25px; height: 25px;
      font-size: 25px;
      line-height: 20px;
      border: 3px solid #fff;
      border-radius: 25px;
      text-align: center;
      color: #fff;
      background: #282828;
    }
  }
}

// 选择模块
.ngdialog-module{
  .ngdialog-close{
    right: -28px;
    top: -23px;
  }
  .tab{
    margin: 0;
    padding: 0;
    list-style: none;
    color: #fff;
    background: #DC4329;
    >li{
      float: left;
      width: 142px;
      line-height: 37px;
      text-align: center;
      font-weight: bold;
      cursor: pointer;
      border-right: 1px solid rgba(255,255,255,0.5);
      &:last-child{
        border-right: 0;
      }
      &.disabled{
        background: #a4a4a4 !important;
        border-right: 1px solid #a4a4a4 !important;
        cursor: not-allowed !important;
        color: #fff !important;
      }
      &.active,&:hover{
        background: #fff;
        border-right-color: #fff;
        color: #282828;
      }
    }
  }
  .tab-content{
    position: relative;
  }
  .modules-list{
    height: 507px;
    padding: 30px 45px 20px;
    overflow-y: scroll;
  }
  .modules-list-1, .modules-list-2{
    float: left;
    margin: 0; padding: 0;
    list-style: none;
  }
  .modules-list-1{
    border-right: 1px solid #f0f0f0;
    padding-right: 47px;
  }
  .modules-list-2{
    padding-left: 47px;
  }
  .modules-list li, .module-nav li{
    position: relative;
    margin-top: 20px; 
    border: 1px solid #F0F0F0;
    &:after{
      content: " ";
      display: none;
      position: absolute;
      bottom: 13px; right: 13px;
      width: 41px; height: 41px;
      background: url(../images/icons.png) 0 -65px no-repeat;
    }
    &:hover,&.active{
      border-color: #DC4329;
    }
    &.active{
      &:after{
        display: block;
      }
    }
  }
  .module-nav{
    height: 564px;
    padding: 30px 45px 20px;
    overflow-y: scroll;
    ul{
      list-style: none;
      padding: 0; margin: 0;
    }
    li{
      margin-bottom: 20px;
      padding: 2px 0;
    }
    img{
      max-width: 885px;
      max-height: 100%;
    }
  }
  .module-custom{
    height: 564px;
    padding: 30px 45px 20px;
  }
  .help-link{
    padding-bottom: 20px;
    text-decoration: underline;
    color: #282828;
    font-size: 12px;
  }
  textarea{
    height: 300px;
  }
  .btn-area{
    padding: 10px 20px;
    text-align: right;
    .btn{
      margin-right: 22px;
    }
    a{
      text-decoration: underline;
      color: #282828;
    }
  }
}

// 更换头图样式
.ngdialog-style{
  .ngdialog-close{
    right: 16px;
    top: 10px;
    &:before{
      border-color: #282828;
      color: #282828;
      background: #fff;
    }
  }
  .title{
    padding: 10px 30px 0;
    margin-bottom: 0;
    font-size: 16px;
  }
  .styles-list{
    margin: 0;
    padding: 0 0 30px 24px;
    height: 586px;
    list-style: none;
    overflow-y: scroll;
    li{
      position: relative;
      float: left;
      margin-top: 20px; 
      margin-right: 63px;
      height: 182px; width: 435px;
      border: 1px solid #F0F0F0;
      &:nth-child(2n){
        margin-right: 0;
      }
      &:after{
        content: " ";
        display: none;
        position: absolute;
        bottom: 13px; right: 13px;
        width: 36px; height: 36px;
        background: url(../images/icons.png) 0 -70px no-repeat;
      }
      &:hover{
        border-color: #DC4329;
        &:after{
          display: block;
        }
      }
    }
  }
}

// 首页预览模板
.ngdialog-template-preview{
  .ngdialog-close{
    cursor: pointer;
    position: fixed;
    top: 3px; right: 25px;
    &:before{
      display: block;
      width: 52px; height: 52px;
      font-size: 50px;
      line-height: 48px;
      border: 4px solid #fff;
      border-radius: 50px;
      text-align: center;
      color: #fff;
      background: #282828;
    }
  }
  .ngdialog-content{
    padding-top: 59px;
  }
  .ngdialog-title{
    position: fixed;
    width: 100%;
    top:0; left: 0;
    padding: 15px 0;
    background: #333;
  }
  .title{
    font: bold 29px/1 "Microsoft Yahei";
    color: #fff;
  }
  .btns{
    float: right;
  }
  .btn{
    margin-left: 10px;
  }
  .prev, .next{
    position: fixed;
    top: 300px;
    font-size: 80px;
    color: #3F3F3F;
    cursor: pointer;
    &:hover{
      color: #8C8C8C;
    }
  }
  .prev{
    left: 50px;
  }
  .next{
    right: 50px;
  }
  img{
    margin-top: -40px;
  }
}